< previous page page_502 next page >

Page 502
Type.gifListing 13.1. Modifying a SQL-VB5 script.
//
// test sql command file for sqlvb interpreter
//

// open the database
dbOpen \tysdbvb5\source\data\books5.mdb;

// open some tables to view
SELECT * FROM Authors WHERE AUID<7;
// SELECT * FROM Titles;
// SELECT * FROM Publishers;
// SELECT * FROM BookSales;
// SELECT * FROM Buyers;
// SELECT * FROM PublisherComments;

//
// eof
//
After you have changed the script, save it using the File | Save command of Notepad. Now select File | Run from the SQL-VB5 main menu to run the updated SQLVB01.SQV command script. Your results should look similar to those in Figure 13.6.
0502-01.jpg
Figure 13.6.
The results of the edited 
SQLVB01.SQV script.
You can create new SQL-VB5 scripts by selecting File | New from the menu and entering any valid SQL statement into the editor. After you've created your script, save it with an .SQV file extension. Then use the File | Run menu option to execute your script.
You need to know a few SQL-VB5 command syntax rules before you can create your own SQL-VB5 scripts. This is covered in the next section.

 
< previous page page_502 next page >

If you like this book, buy it!